function rapprox = revertApprox(approx)

[n, m, l] = size(approx)

for i = 1 : n
    for j = 1 : m
        for k = 1 : l
            rapprox(j, k, i) = approx(i, j, k);
        end
    end
end
        
